package com.changgou.goods.pojo;

import javax.persistence.Id;
import javax.persistence.Table;

@Table(name="tb_category_brand")
public class CategoryBrand {

	@Id
	private Integer categoryId;//使用Integer而不是int，是因为默认值不同，int默认=0，Interger默认=null

	@Id
	private Integer brandId;

	public CategoryBrand() {
	}

	public CategoryBrand(Integer categoryId, Integer brandId) {
		this.categoryId = categoryId;
		this.brandId = brandId;
	}

	public Integer getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public Integer getBrandId() {
		return brandId;
	}

	public void setBrandId(Integer brandId) {
		this.brandId = brandId;
	}
}
